type IOption = {
    label: string
    value: number | string
}

export function filterLabel(arr: IOption[], val: number | string) {
    return arr.filter(item => item.value === val)?.[0]?.label ?? ''
}
